<?php

/*
NukeSigs, Devloped by ScribbyTech.com
Copyright (c) 2008, Richard Simpson.
DO NOT REMOVE COPYRIGHT!!
*/

/*
Thanks wHiTeHaT For Some Fixes & Javascript Highlighting!
http://www.nukecss.com/
*/

if ( !defined('MODULE_FILE') )
{
    die('You can\'t access this file directly...');
}

define("NO_EDITOR", "true");
require_once("mainfile.php"); 
$module_name = basename(dirname(__FILE__));
define('INDEX_FILE', true);

$pagetitle = "- NukeSigs"; // Set Page Title
$url = $nukeurl; // Get URL
include("header.php"); // Include Header
?>
<script type="text/javascript">
function SelectAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}
</script>
<?php
OpenTable(); // Open Main Table
echo "<table width=\"100%\" border=\"0\" align=\"center\"><tr><td align=\"center\">";
echo "<img src=\"modules/".$module_name."/images/logo.gif\" alt=\"".$module_name."\" /><br /><br /><br />";
$dir = $_SERVER['SCRIPT_FILENAME'];
$dir = str_replace('.php','/'.$module_name.'/',$dir);
if (is_dir($dir.'bgs/')) {
if ($dh = opendir($dir.'bgs/')) {
while (($file = readdir($dh)) !== false) {
if ($file != '.' && $file != '..') {

echo "
<img src=\"modules/".$module_name."/image-".$file."\" alt=\"".$module_name."\"/><br /><br />
<table border=\"0\" cellpadding=\"0\">
<tr><td><b>Forum Code:</b></td></tr>
<tr>
<td><textarea rows=\"4\" cols=\"38\" id=\"Forum_Code_".$file."\" onclick=\"SelectAll('Forum_Code_".$file."');\">[URL=".$url."][IMG]".$url."/modules/".$module_name."/image-".$file."[/IMG][/URL]</textarea></td>
</tr>

<tr><td><b>HTML Code:</b></td></tr>
<tr>
<td><textarea rows=\"4\" cols=\"38\" id=\"HTML_Code_".$file."\" onclick=\"SelectAll('HTML_Code_".$file."');\">&lt;a href=\"".$url."\"&gt;&lt;img src=\"".$url."/modules/".$module_name."/image-".$file."\" border=\"0\" alt=\"".$module_name."\" /&gt;&lt;/a&gt;</textarea></td>
</tr>
</table>
<br /><br />
";

}
}
closedir($dh);
}
}

echo "</td></tr></table>";
CloseTable(); // Close Main Table
include("footer.php"); // Include Footer

?>
